package cn.chenxinjie.hrm.feign;

import cn.chenxinjie.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "hrm-system",fallbackFactory = UserInfoFallBackFactory.class)
@RequestMapping("/employee")
public interface UserInfoFeign {
    @GetMapping("/getTenantInfoById/{id}")
    AjaxResult getTenantInfoById(@PathVariable("id") Long id);
}
